//
//  SecondCategoryCell.swift
//  iModern
//
//  Created by 陈石 on 15/6/14.
//  Copyright (c) 2015年 com.starlooking. All rights reserved.
//

import UIKit

class SecondCategoryCell: UICollectionViewCell
{
    @IBOutlet weak var cellLabel: UILabel!
    @IBOutlet weak var cellImage: UIImageView!

    override func awakeFromNib()
    {
        super.awakeFromNib()
    }

    func setData(title: NSString, imageName: NSString)
    {
//        cellImage.layer.cornerRadius = 35;
//        cellImage.layer.borderWidth = 1;
//        cellImage.layer.masksToBounds = true;
        cellImage.image = UIImage(named: imageName as String)

        cellImage.layer.shadowOffset = CGSizeMake(0.0, 0.0)
//        cellImage.layer.shadowOpacity = 4
        cellImage.layer.shadowRadius = 4.0
        cellImage.layer.shadowColor = UIColor.darkGrayColor().CGColor

        cellLabel.text = title as String
    }
}
